package com.huawei.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
//入门案例
@RestController //RestController相当于Controller和ResponseBody
public class TestController {

    @GetMapping("/test")
    public String test(){
        return "hello";
    }
}
